package exam.bean;

import java.io.Serializable;
import java.util.Map;

/**
 * 标准答案对应类
 */
public class StanAnswer implements Serializable {

    //序列化版本号
    private static final long serialVersionUID = -6376829416477425121L;
    //单选题答案
    private Map<String,String> singleAnswer;
    //多选题答案
    private Map<String,String> multiAnswer;
    //对错题答案
    private Map<String,Boolean> judgeAnswer;
    //填空题答案
    private Map<String,String> fillInAnswer;
    //简答题答案
    private Map<String,String> quesAnswer;

    public StanAnswer() {
    }

    public StanAnswer(Map<String,String> singleAnswer, Map<String,String> multiAnswer, Map<String,Boolean>judgeAnswer,
                      Map<String,String> fillInAnswer, Map<String,String> quesAnswer) {
        this.singleAnswer = singleAnswer;
        this.multiAnswer = multiAnswer;
        this.judgeAnswer = judgeAnswer;
        this.fillInAnswer = fillInAnswer;
        this.quesAnswer = quesAnswer;
    }

    public Map<String, String> getSingleAnswer() {
        return singleAnswer;
    }

    public void setSingleAnswer(Map<String, String> singleAnswer) {
        this.singleAnswer = singleAnswer;
    }

    public Map<String, String> getMultiAnswer() {
        return multiAnswer;
    }

    public void setMultiAnswer(Map<String, String> multiAnswer) {
        this.multiAnswer = multiAnswer;
    }

    public Map<String, Boolean> getJudgeAnswer() {
        return judgeAnswer;
    }

    public void setJudgeAnswer(Map<String, Boolean> judgeAnswer) {
        this.judgeAnswer = judgeAnswer;
    }

    public Map<String, String> getFillInAnswer() {
        return fillInAnswer;
    }

    public void setFillInAnswer(Map<String, String> fillInAnswer) {
        this.fillInAnswer = fillInAnswer;
    }

    public Map<String, String> getQuesAnswer() {
        return quesAnswer;
    }

    public void setQuesAnswer(Map<String, String> quesAnswer) {
        this.quesAnswer = quesAnswer;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "singleAnswer=" + singleAnswer +
                ", multiAnswer=" + multiAnswer +
                ", judgeAnswer=" + judgeAnswer +
                ", fillInAnswer=" + fillInAnswer +
                ", quesAnswer=" + quesAnswer +
                '}';
    }
}
